package com.friends.utils.path;

import com.friends.utils.path.impl.AntPathMatcher;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Zhao Tianhao
 * @version 2023/07/20 09:47
 **/
public class Main {
    public static final PathMatcher PATH_MATCHER = new AntPathMatcher();

    public static void main(String[] args) {
        String excludedPaths = StringUtils.EMPTY;
        if (StringUtils.isNoneBlank(excludedPaths)) {
            for (String excludedPath : excludedPaths.split(",")) {
                String uriPattern = excludedPath.trim();
                if (PATH_MATCHER.match(uriPattern, "/test/test")) {
                    // 可用于过滤器
                    // chain.doFilter(request, response);
                    return;
                }

            }
        }
    }
}